package brush;

import net.jcip.annotations.Immutable;
import shape.Square;
import surface.Canvas;

@Immutable
public class SquareBrush extends AbstractBrush {
	
	private final Square square;
	
	public SquareBrush(final Canvas canvas, Square square) {
		super(canvas);
		this.square = square;
	}

	@Override
	public void draw(final BrushStateContext context) {
		canvas.addShape(square);
	}
}
